package com.unitd.frame.sso.web.interceptor;

import com.unitd.frame.sso.web.handler.ISSOHandler;
import com.unitd.frame.sso.web.handler.impl.DefaultSSOHandler;

/**
 * @desc SSO 登录权限验证, 拦截器抽象类
 * @filename AbstractSSOInterceptor.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2016/10/18
 */
public abstract class AbstractSSOInterceptor {

	private ISSOHandler ssoHandler; 						// SSO 拦截控制器

	public ISSOHandler getSsoHandler() {
		if (ssoHandler == null) {
			return DefaultSSOHandler.getInstance();
		}
		return ssoHandler;
	}

	public void setSsoHandler(ISSOHandler ssoHandler) {
		this.ssoHandler = ssoHandler;
	}
}